home *** CD-ROM | disk | FTP | other *** search
- >>What I want to do is use AmosPro to create a file in Ram called Datapath
- >>and then execute it with Amiga dos.
- >>If you look at the example below it should create a file called Datapath
- >>containing "CD workbench:data".
- >>
- >>a$="workbench:data"
- >>C$="CD "
- >>A$=C$+A$
- >>Open Out 3,"Ram:Datapath"
- >>Print #3,A$
- >>Print #3,Chr$(13)
- >>Close 3
- >
- >If you write your info to a bank and Bsave from it you eliminate the
- >extra characters. But in this case, how about quick & dirty with the
- >CLI echo command?
- >
- >A$="CD workbench:data"
- >exec "echo "+A$+" >ram:Datapath" :Rem Keep those spaces
-
- This echo thing will only work once, replacing the file each time. To
- enter further commands put '>>' (append file) instead of '>' (replace file)
-
- Better is the Amos way:
-
- Open Out 3,"Ram:Datapath"
- Print #3,A$;Chr$(10);
- Close 3
-
- Exec "execute ram:Datapath"
-
- Curt
-
- ============================================================================
- Curtis Yallop "Ms-Dos Sucks Dirt" cyallop@gpu.srv.ualberta.ca
- Amiga 1200 - '030 28MHz, 6MB RAM, 540HD http://www.ualberta.ca/~cyallop
- ============================================================================
-
-
-
-